package com.ruoyi.system.domain.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.util.Date;
import java.util.Objects;

/**
 * @author xdh
 * @title OrderModelExcel
 * @date 2024/7/1 13:49
 * @description TODO
 */
@Data
public class OrderModelExcel {



    @ExcelProperty(value = "订单编号" ,index = 0)
    private String order_code;
    @ExcelProperty(value = "买家姓名" ,index = 1)
    private String order_buyer_name;

    @ExcelProperty(value = "身份证号码" ,index = 2)
    private String order_buyer_indo;

    @ExcelProperty(value = "联系电话" ,index = 3)
    private String order_buyer_tel;

    @ExcelProperty(value = "订单时间" ,index = 4)
    private String order_time;

    @ExcelProperty(value = "购买物品" ,index = 5)
    private String order_goods;

    @ExcelProperty(value = "收货人姓名" ,index = 6)
    private String order_harver_name;

    @ExcelProperty(value = "收货人手机号" ,index = 7)
    private String order_harver_tel;


    @ExcelProperty(value = "收获地址" ,index = 8)
    private String order_harver_address;


    private Integer order_status;

    private String order_status_msg;



    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OrderModelExcel that = (OrderModelExcel) o;
        return Objects.equals(order_buyer_name, that.order_buyer_name) &&
                Objects.equals(order_buyer_indo, that.order_buyer_indo) &&
                Objects.equals(order_buyer_tel, that.order_buyer_tel) &&
                Objects.equals(order_time, that.order_time) &&
                Objects.equals(order_goods, that.order_goods) &&
                Objects.equals(order_harver_name, that.order_harver_name) &&
                Objects.equals(order_harver_tel, that.order_harver_tel) &&
                Objects.equals(order_harver_address, that.order_harver_address);
    }

    @Override
    public int hashCode() {
        return Objects.hash(order_buyer_name, order_buyer_indo, order_buyer_tel, order_time, order_goods, order_harver_name, order_harver_tel, order_harver_address);
    }
}
